import pygame
from menuOptions import *
from menu import *

HELPMENU_IMAGES_DIR = 'helpmenu/'
MENU = [ JOGAR ] 

#START_X = 180
#START_Y = 250
START_X = 430
START_Y = 210
DIFF = 30

background_list = [ FACIL, MEDIO, DIFICIL, MUITO_DIFICIL ]

class HelpMenu(Menu):
    def __init__(self, main) :
        super(HelpMenu, self).__init__(main, HELPMENU_IMAGES_DIR, None, MENU, START_X, START_Y, DIFF)
        self.dificulty = FACIL
            
    def __loadBackground__(self, background_file) :
        background = {}
        for b in background_list :
            background[b] = pygame.image.load(self.images_dir + 'background_'+b+'.png').convert_alpha()
        return background
           
    def paint(self, screen):
        screen.blit(self.background[self.dificulty], (0,0))
        for item in self.items_menu :
            try:
                screen_position = self.__getScreenPosition__(item)
                screen.blit(self.images_menu[item], screen_position)
            except:
                pass
                
    def setDificulty(self, dificulty):
        self.dificulty = dificulty
